package com.kfm.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.kfm.entity.Directory;
import com.kfm.mapper.DirectoryMapper;
import com.kfm.service.DirectoryService;
@Service
public class DirectoryServiceImpl implements DirectoryService{

    @Resource
    private DirectoryMapper directoryMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return directoryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Directory record) {
        return directoryMapper.insert(record);
    }

    @Override
    public int insertSelective(Directory record) {
        return directoryMapper.insertSelective(record);
    }

    @Override
    public Directory selectByPrimaryKey(Integer id) {
        return directoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Directory record) {
        return directoryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Directory record) {
        return directoryMapper.updateByPrimaryKey(record);
    }

    @Override
    public Directory selectByDirName(String name) {
        return directoryMapper.selectByDirName(name);
    }

}
